<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------

use think\facade\Env;

return [
	'connector' => Env::get('queue.type', 'redis'),
	'timeout'    => 0,
	'persistent' => true,

	'host'       => Env::get('queue.host', 'localhost'),
	'port'       => Env::get('queue.port', '6379'),
	'password'   => Env::get('queue.password', ''),
	'select'	 => Env::get('queue.select', 0),
	'expire'	 => Env::get('queue.expire', 864000),	// 任务过期时间，禁用为null
];
